//
//  SpecialSmallCell.swift
//  CompareBuying
//
//  Created by 唐先才 on 16/2/17.
//  Copyright © 2016年 唐先才. All rights reserved.
//

import UIKit

class SpecialSmallCell: UICollectionViewCell {

    @IBOutlet weak var iconView: UIImageView!
    @IBOutlet weak var titleLab: UILabel!
    @IBOutlet weak var priceLab: UILabel!
    
    func configCellWithListModel(listModel: ListRecommendInfoModel) {
        guard let strImg = listModel.strMainImage, title = listModel.strInfoTitle, price = listModel.strCommodityPrice else {
            print("SpecialSmallCell赋值失败")
            return
        }
        iconView.sd_setImageWithURL(NSURL(string: strImg))
        titleLab.text = title
        priceLab.text = price
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

}
